package com.programmingeyeclient.user.controller;


import com.programmingeyeclient.user.entity.EduSubject;
import com.programmingeyeclient.user.service.EduSubjectService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@CrossOrigin
public class EduSubjectController {

    @Resource
    private EduSubjectService eduSubjectService;

    @GetMapping("/classifyAll")
    public List<EduSubject> classifyAll(){
        return eduSubjectService.classifyAll();
    }
}
